package month3.day29;

public class Hamster extends Pet{
    public Hamster() {
    }

    public Hamster(String name, int health, int love, String sex) {
        super(name, health, love, sex);
    }
    public void print(){
        System.out.println("这是一只仓鼠");
        super.print();//不能少，主动调用父类的print方法
    }
    public void bite(){
        System.out.println("磨牙啃桌腿");
    }
}
